package sensimulator.intersection.traffic;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.geom.AffineTransform;
import java.awt.image.ImageObserver;

import sensimulator.intersection.lanes.Lane;

public class Car extends TrafficUser {

	static final float SPEED = .10f;
	
	static final String[] CAR_SPRITES = { "resources/mitsubishi_3000gt.png",
										  "resources/ford_pinto.png",
										  "resources/ford_rs200.png",
										  "resources/ford_truck.png",
										  "resources/toyota_ae86.png",
										  "resources/audi_tt.png",
										  "resources/tanker.png",
										  "resources/mini_cooper.png" };
	
	public Car(Lane lane, Point position) {
		super(lane, position, SPEED);
		
		image = Toolkit.getDefaultToolkit().createImage(CAR_SPRITES[(int) (Math.random() * CAR_SPRITES.length)]);
	}
	
	@Override
	public void tick(long time, int delta) {
		super.tick(time, delta);
		
	}
	

}
